﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GWModflow.FileLayers
{
   public class ModFlowModel
    {


        PBasic _basicPackage;

        public PBasic BasicPackage
        {
            get { return _basicPackage; }
            set { _basicPackage = value; }
        }


        PDiscretization _discretizationPackage;

        public PDiscretization DiscretizationPackage
        {
            get { return _discretizationPackage; }
            set { _discretizationPackage = value; }
        }


        List<Package> _packages;

        public List<Package> Packages
        {
            get { return _packages; }
            set { _packages = value; }
        }



        #region 对外主功能接口

        public void WriteFiles(string directory)
       {

           this._basicPackage.WriteFile(directory);
           this._discretizationPackage.WriteFile(directory);


           foreach (Package pack in this._packages)
           {
               pack.WriteFile(directory);
               
           }




           //第一行应该是LIST文件
           string listFile;




       }

        #endregion


    }
}
